package org.example.Day5.forxunhuan;

import java.util.ArrayList;
import java.util.Collection;

public class Test {
    public static void main(String[] args) {
        Collection<movies> movie = new ArrayList<>();
        movie.add(new movies("《肖申克的救赎》", 9.7, "罗宾斯"));
        movie.add(new movies("《霸王别姬》", 9.6, "张国荣、张丰毅"));
        movie.add(new movies("《阿⽢正传》", 9.5, "汤姆汉克斯"));
        for (movies m : movie) {
            System.out.println("电影名：" + m.getName());
            System.out.println("评分：" + m.getScore());
            System.out.println("主演：" + m.getActor());
        }
    }
}